package com.yanqu.road.server.manager.activity.commonsupport.handler;

import com.yanqu.road.logic.helper.UnionActivityGroupHelper;
import com.yanqu.road.server.manager.strongholdwar.CrossStrongholdMgr;
import com.yanqu.road.server.manager.strongholdwar.StrongholdActivityModel;
import com.yanqu.road.server.manager.union.activitygroup.Cross2UnionActivityGroupMgr;

/**
 * 据点战
 */
public class StrongholdWarActivitySupportHandler extends SupportActivityHandler {

    @Override
    public boolean ableUnion(int activityId, int groupId, String unionUid) {
        StrongholdActivityModel activityModel = CrossStrongholdMgr.getActivityModel(activityId, groupId);
        if(activityModel != null){
//            activityModel.get
        }
        return false;
    }

    @Override
    public boolean ableUser(int activityId, int groupId, long userId) {
        if(groupId == 0){
            return true;
        }
        int gid = Cross2UnionActivityGroupMgr.getGroupId(activityId, userId);
        return gid != UnionActivityGroupHelper.NO_GROUP_ID;
    }
}
